Adjust to icon cache api change. (#506135, Kazuki Iwamoto)
authorMatthias Clasen <mclasen@redhat.com>
Sat, 29 Dec 2007 00:14:30 +0000 (00:14 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sat, 29 Dec 2007 00:14:30 +0000 (00:14 +0000)
2007-12-28  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkiconfactory.c (render_fallback_image): Adjust to
        icon cache api change.  (#506135, Kazuki Iwamoto)

svn path=/trunk/; revision=19289

ChangeLog
gtk/gtkiconfactory.c

index 2f1abef3cb7b2be06c07434163ce0b2eb5884beb..f47d9946a23c039ad47d029e0e8d9743a847f6e9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-28  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkiconfactory.c (render_fallback_image): Adjust to
+       icon cache api change.  (#506135, Kazuki Iwamoto)
+
 2007-12-28  Mathias Hasselmann  <mathias@openismus.com>
 
        Remove max_detail_height field from GtkCalendarPrivate. (#339540)
index 71055c394a03bbbe0db643fc26668572404ee837..d8e8bff2794b4c059b25924274fa0671d2b1ed5f 100644 (file)
@@ -1570,13 +1570,15 @@ render_fallback_image (GtkStyle          *style,
 
   if (fallback_source.type == GTK_ICON_SOURCE_EMPTY)
     {
+      gint index;
       GdkPixbuf *pixbuf;
 
       _gtk_icon_theme_ensure_builtin_cache ();
 
+      index = _gtk_icon_cache_get_directory_index (_builtin_cache, "24");
       pixbuf = _gtk_icon_cache_get_icon (_builtin_cache,
                                         GTK_STOCK_MISSING_IMAGE,
-                                        "24");
+                                        index);
       gtk_icon_source_set_pixbuf (&fallback_source, pixbuf);
       g_object_unref (pixbuf);
     }